package com.jasmine.bjstkserver.core.config.support;

import com.jasmine.bjstkserver.server.dict.DictService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

/**
 * @author jasmineXz
 */
public class DictRunner implements ApplicationRunner {

    private static final Logger log = LoggerFactory.getLogger(DictRunner.class);

    @Autowired
    private DictService dictService;

    @Override
    public void run(ApplicationArguments args) {
        dictService.refreshDictAll();
    }

}